package com.vehicle.controller;

import com.vehicle.bean.DataGridView;
import com.vehicle.service.MaintainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/maintain")
public class MaintainController {
    @Autowired
    private MaintainService maintainService;
    @ResponseBody
    @RequestMapping(value = "allMaintain")
    public DataGridView findAllMaintain(){
        return maintainService.findAllMaintain();
    }
}
